﻿using NAnt.Core;
using NAnt.Core.Attributes;

namespace ECM7.NantContrib.Types
{
	/// <summary>
	/// Новый пользователь БД
	/// </summary>
	[ElementName("user")]
	public class DatabaseUserElement : Element
	{
		[TaskAttribute("login", Required = true), StringValidator(AllowEmpty = false)]
		public string Login { get; set; }

		[TaskAttribute("password")]
		public string Password { get; set; }

		[TaskAttribute("isWindowsUser"), BooleanValidator]
		public bool IsWindowsUser { get; set; }
	}
}
